package com.evolved.automata.android.bots.speechbot;

public abstract class Predicate {

	protected Object param1;
	protected Object param2;
	protected Object param3;
	
	public Predicate()
	{
		
		
	}
	
	public Predicate(Object Param1)
	{
		param1=Param1;
		
	}
	
	public Predicate(Object Param1,Object Param2)
	{
		param1=Param1;
		param2=Param2;;
	}
	
	public Predicate(Object Param1,Object Param2,Object Param3)
	{
		param1=Param1;
		param2=Param2;
		param3=Param3;
	}
	
	public void setParams(Object Param1)
	{
		param1=Param1;
		
	}
	
	public void setParams(Object Param1,Object Param2)
	{
		param1=Param1;
		param2=Param2;;
	}
	
	public void setParams(Object Param1,Object Param2,Object Param3)
	{
		param1=Param1;
		param2=Param2;
		param3=Param3;
	}
	
	public void setParameterIndex(Object param, int index)
	{
		switch (index)
		{
			case 1:
				param1=param;
				break;
			case 2:
				param2=param;
				break;
			case 3:
				param3=param;
				break;
		}
	}
	
	public abstract boolean truthValue();
	
	
}
